package day0602;

import java.util.Scanner;

public class File5 {

    public static void main(String[] args) {
        int i=1;
        Scanner s=new Scanner(System.in);
        while(i<=3){
            System.out.println("请输入小狗的年龄：");
            int age=s.nextInt();//用Scanner输入8
            if(0<age && age<=2){
                System.out.println(age*10.5);
            }else{
                System.out.println((age-2)*4 + 10.5*2);
            }
            i++;
        }

    }


}
